home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Util / Md-Mz / Morse.cpt / Morse.doc < prev   
Encoding:
Text File  |  1988-06-27  |  2.5 KB  |  66 lines  |  [TEXT/????]

  1. Morse Documentation (26-Jun-88)
  2. ===================
  3.  
  4. This archive contains some code resources, all related to a simple 
  5. Morse code generating routine. Everything was written in "LightspeedC" 
  6. 2.15, and if anyone wants the source code he should call me (LX1YZ @ 
  7. LX0PAC or CIS 73720,2200). The programs were developed and tested on a 
  8. Macintosh Plus with 1 MB of memory, running System 4.3 and Finder 6.0 
  9. (or MultiFinder 1.0).
  10.  
  11. The Morse code is generated by the Macintosh speaker. There are four 
  12. parameters to set up:
  13.  
  14. 1. The character string. Those characters are sent in Morse code.
  15.  
  16. 2. The frequency. E.g. 750 Hz sounds good.
  17.  
  18. 3. The volume. Choose a value between 0 and 255. 255 is loudest. The 
  19. exact volume depends also on the setting of the overall volume set up 
  20. in the General part of the Control Panel.
  21.  
  22. 4. The length of each dot in 1/60 seconds. My preferred speed while on 
  23. the air is 3, giving a dot length of 50 ms. Figure out by yourself what 
  24. that means in words per minute.
  25.  
  26. The three files are:
  27.  
  28. "Morse CDEV"
  29.  
  30. This is a 'cdev' file, meaning that it can be used by the Control Panel 
  31. desk accessory (I think you must have System version 4.1 or later). Put 
  32. it into your system folder, and select it while running the Control 
  33. Panel. You can set up the parameters by clicking on their respective 
  34. boxes (by the way if anyone knows how to program a 'cdev' with 
  35. "editText" fields that does not screw up the Control Panel he should 
  36. send me the trick). Try it out by clicking on my head. There is also an 
  37. 'INIT' resource in this file, so each time you start up your system you 
  38. will hear in Morse code the character string you have chosen. Very 
  39. useful, isn't it?
  40.  
  41. "Morse FKEY"
  42.  
  43. This is a 'FKEY' resource you can put into your System file, with 
  44. "ResEdit". It simply generates its resource name (you can modify the 
  45. name with "ResEdit") in Morse code, if activated (Command-Shift-Digit). 
  46. If necessary renumber it with "ResEdit". Choose a number between 1 and 
  47. 9, not yet used by another 'FKEY'. Again this is a very useful feature 
  48. available in any application.
  49.  
  50. "Morse XCMD"
  51.  
  52. This is an external command for "HyperCard". Use "ResEdit" or "ResCopy" 
  53. to copy it into your stack, into the home stack, or into "HyperCard" 
  54. itself. In your HyperTalk script you can then call it like this:
  55.  
  56.   Morse string,frequency,volume,dotlength
  57.   Morse string
  58.  
  59. The second form uses the default values of 750 Hz, volume 32 and dot 
  60. length 3. Some examples (try them out in the message box):
  61.  
  62.   Morse "73 de lx1yz",1000,255,2
  63.   Morse UserName
  64.  
  65. Again this wonderful feature will give more value to your stacks.
  66.